if (node->background_texture != COGL_INVALID_HANDLE)
cogl_handle_unref (node->background_texture);
+ if (node->background_material != COGL_INVALID_HANDLE)
+ cogl_handle_unref (node->background_material);
if (node->background_shadow_material != COGL_INVALID_HANDLE)
cogl_handle_unref (node->background_shadow_material);
if (node->border_texture != COGL_INVALID_HANDLE)
int corner_id;
node->background_texture = COGL_INVALID_HANDLE;
+ node->background_material = COGL_INVALID_HANDLE;
node->background_shadow_material = COGL_INVALID_HANDLE;
node->border_shadow_material = COGL_INVALID_HANDLE;
node->border_texture = COGL_INVALID_HANDLE;
{
node->background_texture = st_texture_cache_load_file_to_cogl_texture (texture_cache, background_image);
+ node->background_material = _st_create_texture_material (node->background_texture);
if (shadow_spec)
{
&background_box,
paint_opacity);
- paint_material_with_opacity (node->border_material, &background_box, paint_opacity);
+ paint_material_with_opacity (node->background_material, &background_box, paint_opacity);
}
}
node->border_shadow_material = cogl_handle_ref (other->border_shadow_material);
if (other->background_texture)
node->background_texture = cogl_handle_ref (other->background_texture);
+ if (other->background_material)
+ node->background_material = cogl_handle_ref (other->background_material);
if (other->border_texture)
node->border_texture = cogl_handle_ref (other->border_texture);
if (other->border_material)
CoglHandle background_shadow_material;
CoglHandle border_shadow_material;
CoglHandle background_texture;
+ CoglHandle background_material;
CoglHandle border_texture;
CoglHandle border_material;
CoglHandle corner_material[4];